package com.ourcauser.worn.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ourcauser.worn.mappers.IFuncTraceMapper;
import com.ourcauser.worn.entities.FuncTrace;

@Service("funcTraceService")
public class FuncTraceServiceImpl implements IFuncTraceService {

	@Autowired
	private IFuncTraceMapper mapper;
	
	@Override
	public List<FuncTrace> getDatas() {
		return mapper.getDatas();
	}

	@Override
	public FuncTrace getDataByPkey(String pkey) {
		return mapper.getDataByPkey(pkey);
	}

	@Override
	public int checkForInsert(String IP) {
		return mapper.checkForInsert(IP);
	}

	@Override
	public void insert(FuncTrace funcTrace) {
		mapper.insert(funcTrace);
	}

}
